package edu.sctu.zcy.month201505.day20150510.text4;

/**
 * Created by user24 on 2015/5/10.
 */
public class Called {

    Student[] arr;

    public void getNature(Student[] students) {

        arr=students;

        for (Student e :arr) {
            if (e.getAge() > 18) {
                System.out.println("已成年！");
                System.out.println("姓名：" + e.getName());
                System.out.println("年龄：" + e.getAge());
                System.out.println("班级：" + e.getOclass());
                System.out.println("学号：" + e.getNumber());
                System.out.println();
            } else {
                System.out.println("未成年：" + "姓名：" + e.getName()+"   年龄： "+e.getAge());
                System.out.println();
            }
        }

    }


}
